{php $records1=tag("moduleid=".$printmoduleid."&condition=video<>'' and status=3&pagesize=1&order=addtime desc&template=null");}
{if $records1}
<script type="text/javascript" src="{DT_PATH}template/{$CFG[template]}/skin/player/Flvplayer.js"></script>
<div class="infomin01 item-top">
	<div id="scroll0{$objectcount}content" class="clearfix" style="background-color:#000000;height:{$videoheight}px">
		<div id="player" style="width:100%;height:100%"></div>
	</div>
</div>
<script language="javascript">
function scroll0{$objectcount}_reset(){
	if ($(window).width()>{$videoscanbodywidth}){
		$("#scroll0{$objectcount}content").css("height","{$videoheight}px");
	}
	else{
		$("#scroll0{$objectcount}content").css("height",parseInt($("#scroll0{$objectcount}content").width()*0.75));
	}
}
$(document).ready(function (){
	$('#player').html(VideoPlayer('{$records1[0][video]}', 1, 1, true));
{if $videoscanbodywidth}	setInterval("scroll0{$objectcount++}_reset()",1000);{/if}
})
</script>
{/if}